package com.example.springbootprometheus.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.concurrent.TimeUnit;

/**
 * Created by IntelliJ IDEA2022.3.2
 * @Author: Tenghw
 * @Date: 2023/04/25  13:43
 * @Description: 演示springboot如何优雅进行停机
 */
@RestController
public class ShutDownController {
    @GetMapping(path = "/shutDownTest")
    public String shutDownTest() throws InterruptedException {
        TimeUnit.SECONDS.sleep(6);
        return "springboot如何优雅进行停机";
    }
}
